/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.domain.req;

import com.xy.lang.validation.SaveChecks;
import com.xy.lang.validation.UpdateChecks;
import com.xy.lang.validation.annotation.AlertMessage;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *
 *
 * @author zsp
 * @date 2021-4-13
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class UpdateManufactureRecordTemplateRequestStatus {

	/**
	 * 生产记录模板Id
	 */
	@NotNull(message = "manufactureRecordTemplateIdRequired", groups = { UpdateChecks.class })
	@AlertMessage(code = "manufactureRecordTemplateIdRequired", msg = "生产记录模板Id不能为空")
	private Long manufactureRecordTemplateId;
	/**
	 * 数据模板名称
	 */
	@NotNull(message = "statusRequired", groups = { UpdateChecks.class })
	@AlertMessage(code = "statusRequired", msg = "状态不能为空")
	private Integer status;

}
